| C# |
|---|
| public static String XmlEncode(String text) |
| C# |
|---|
using LJCNetCommon; // Encodes a string with XML escape values. private static void XmlEncode() { // Setup string xml = "<text>Here & There</text>"; // Encodes a string with XML escape values. string encoded = NetCommon.XmlEncode(xml); // Check the text. string text = NetCommon.XmlDecode(encoded); } |